<?php

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;

class Item extends Authenticatable
{
    public $timestamps = false;
    protected $guarded = ['id'];
    protected $table = "work";

    public function poster()
    {
        return $this->belongsTo('App\User', 'user_id');
    }

    public function picture(){
        return $this->has('App\Picture', "pic");
    }
}
